package service;


import Dao.UserDao03;
import pojo.User;

import java.sql.SQLException;
import java.util.List;

public class UserService {
    private UserDao03 userDao03 = new UserDao03();

    //查询
    public List<User> userList() {
        List<User> userList = null;
        try {
            userList = userDao03.query();
        } catch (SQLException throwables) {
            throwables.printStackTrace();
        }
        return userList;
    }


}
